name="ittheima is a brand of itcast"
j=0
for i in name:
    if i=="a":
        j+=1
print(f"{j}")